package br.ebula.apl.dao;

import java.sql.CallableStatement;
import java.sql.SQLException;

import br.ebula.apl.dto.DTOListaConteudoBula;

public class DAOListaConteudoBula extends DAOGenerico{

	DTOListaConteudoBula dto;
	
	public void listaConteudoBula(DTOListaConteudoBula dto) {
		this.dto = dto;
		dto.retiraBula(executaProcedure("lista_conteudo_bula",1));
	}

	@Override
	void configuraParametros(CallableStatement cstmt) throws SQLException {
		cstmt.setInt(1,Integer.parseInt(dto.getBula().getCodigo()));
	}

}
